package com.ktg.mes.md.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;


/**
 * 产品批次单对象 md_batch_header
 *
 * @author byteco
 * @date 2022-12-15
 */

@Data
@Accessors(chain = true)
@TableName("md_batch_header")
public class MdBatchHeader extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;


    /** 分类 */
    private Long recordType;


    /** 产品物料id */
    private Long itemId;


    /** 产品物料编码 */
    private String itemCode;


    /** 产品物料名称 */
    @Excel(name = "产品物料名称")
    private String itemName;


    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;


    /** 单位 */
    @Excel(name = "单位")
    private String unitOfMeasure;


    /** 粘度 */
    @Excel(name = "粘度")
    private String viscosity;


    /** 标签 */
    @Excel(name = "标签")
    private String tag;


    /** 装箱规格 */
    @Excel(name = "装箱规格")
    private String packingType;


    /** 生产批次号 */
    @Excel(name = "生产批次号")
    private String batchNo;


    /** 前缀 */
    @Excel(name = "前缀")
    private String prefix;


    /** 开始流水号 */
    @Excel(name = "开始流水号")
    private Long startNumber;


    /** 结束流水号 */
    @Excel(name = "结束流水号")
    private Long endNumber;


    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;


    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productDate;


    /** 有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validDate;


    /** 检测结果 */
    @Excel(name = "检测结果")
    private String testResult;





}
